package algorithm.sphericharmonics;

public class SphereDescriptor {
	private int radius_index; 
	private float[] l2Normal; 
	public SphereDescriptor(int radius_index, float[] l2Normal){
		this.l2Normal=l2Normal; 
		this.radius_index=radius_index; 
	}
	public void print(){
		System.out.println("=====radius_index:"+this.radius_index+"==============");
		
		for (int l=0; l<VoxelizedSphere.lmax; l++){
			if (l2Normal[l]>0.00001){
				System.out.println("f("+l+")="+l2Normal[l]);
			}
		}
		
	}
	public int getRadius_index() {
		return radius_index;
	}
	public void setRadius_index(int radius_index) {
		this.radius_index = radius_index;
	}
	public float[] getL2Normal() {
		return l2Normal;
	}
	public void setL2Normal(float[] normal) {
		l2Normal = normal;
	}
	public boolean equals(Object x){
		SphereDescriptor sph=(SphereDescriptor)x; 
		return sph.radius_index==this.radius_index; 
	}
}
